package com.springboot.dubbo.provider.domain;

import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author yangjian
 */
public interface UserRepository extends JpaRepository<User, Long> {

    User findByUserName(String userName);

    User findByUserNameOrEmail(String username, String email);
    
}